package com.thd.springboottest.kafka.kafkaclientedu;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * com.thd.springboottest.kafka.kafkaclientedu.JacksonBean
 *
 * @author: wanglei62
 * @DATE: 2022/4/13 17:04
 **/
public class JacksonBean {
    private String name;
    private Integer age;
    private BigDecimal number;
    @JsonFormat(pattern="yyyy||MM||dd")
    private Date birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "JacksonBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", number=" + number +
                ", birthday=" + birthday +
                '}';
    }
}
